package com.flycun.quickstart;

import java.util.concurrent.atomic.AtomicInteger;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

//@SpringBootApplication
//@EnableScheduling
public class ScheduledApplication {
	public static void main(String[] args) {
		SpringApplication.run(ScheduledApplication.class, args);
	}
	
	private final AtomicInteger counter = new AtomicInteger();

	@Scheduled(fixedRate = 1000)
	public void sendMessage() {
		//System.out.println("send:"+counter.getAndIncrement());
	}
}
